package org.colcon.web.model;

import java.util.HashMap;
import java.util.Map;

import org.colcon.web.model.framework.ILink;

public class Link extends Item implements ILink 
{
	public String getType(){return "link";}
	
	private static final long serialVersionUID = -2034781672838221364L;
	
	protected static final String
	
		// arguments
		LINK = "link";
	
	public Link()
	{
		this(new HashMap<String, String>());
	}
	
	public Link(Map<String, String> args)
	{
		this(args.get(PARENT), args.get(ID), args.get(LINK));
	}
	
	public Link(String parent, String id, String link)
	{
		super(parent, id);
		
		setArg(LINK, link);
	}
	
	public String getLink()
	{
		return getArg(LINK);
	}
}
